package com.ycw.dao.impl;

import org.hibernate.SessionFactory;
import org.springframework.orm.hibernate5.support.HibernateDaoSupport;

import com.ycw.dao.UserDao;
import com.ycw.entity.User;

public class UserDaoImpl extends HibernateDaoSupport implements UserDao {


	public User getUserByid(int id) {
		return getHibernateTemplate().get(User.class, id);
	}

	public void save(User user) {
		getHibernateTemplate().save(user);
	}

}
